<template>
  <div id="layout" class="layout" >
    <div class="layout-header"></div>
    <div class="layout-body">
       <router-view></router-view>
    </div>
    <div class="layout-footer"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {},
  computed: {}
};
</script>


<style>
body,
html,
#app {
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
}

.layout {
  height: 100%;
}

.layout-header {
  height: 80px;
  background-color: black;
}

.layout-body {
  height: calc(100% - 160px);
  background-color: white;
  width: 1200px;
  padding: 10px;
  margin: 0 auto;
}

.layout-footer {
  height: 60px;
  background-color: lightpink;
}
</style>